<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('添加采购数量')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-purchaseplan-edit" th:object="${materialsRequisitiones}">
        <input name="mMid" th:field="*{mMid}" type="hidden">
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">材料类型：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="matTypes" th:field="*{matTypes}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">材料分类：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="matClassifications" th:field="*{matClassifications}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">材料数据：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="matDatas" th:field="*{matDatas}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">材料详情：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="matDetailss" th:field="*{matDetailss}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">材料数量：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="matNumbers" th:field="*{matNumbers}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">申请人：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="mPeoples" th:field="*{mPeoples}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">状态：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <div class="radio-box">-->
        <!--                    <input type="radio" name="mStatus" value="">-->
        <!--                    <label th:for="mStatus" th:text="未知"></label>-->
        <!--                </div>-->
        <!--                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">创建时间：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <div class="input-group date">-->
        <!--                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
        <!--                    <input name="mMtime" th:value="${#dates.format(materialsRequisitiones.mMtime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
        <!--                </div>-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">审批意见：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="mOpinions" th:field="*{mOpinions}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">项目外键：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="mId" th:field="*{mId}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">已购材料数量：</label>
            <div class="col-sm-8">
                <input name="mBuy"  class="form-control"  th:field="*{mBuy}" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">库中拿取数量：</label>
            <div class="col-sm-8">
                <input name="mLocal"  class="form-control"  value="0" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">采购商家：</label>
            <div class="col-sm-8">
                <input name="mBusiness" th:field="*{mBusiness}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">材料单价：</label>
            <div class="col-sm-8">
                <input name="mPrice" th:field="*{mPrice}" class="form-control" type="text">
            </div>
        </div>
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">未购材料数量：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="mUnbuy" th:field="*{mUnbuy}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
        <!--        <div class="form-group">-->
        <!--            <label class="col-sm-3 control-label">采购任务状态：</label>-->
        <!--            <div class="col-sm-8">-->
        <!--                <input name="mIsover" th:field="*{mIsover}" class="form-control" type="text">-->
        <!--            </div>-->
        <!--        </div>-->
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "ruoyi/purchaseplan";

    $("#form-purchaseplan-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-purchaseplan-edit').serialize());
        }
    }

    //
    // $("input[name='mMtime']").datetimepicker({
    //     format: "yyyy-mm-dd",
    //     minView: "month",
    //     autoclose: true
    // });
</script>
</body>
</html>